package com.hibikiluler.javalearning.service;

import com.hibikiluler.javalearning.entity.BookCollect;
import com.hibikiluler.javalearning.entity.LearnCollect;
import com.hibikiluler.javalearning.util.Result;

public interface ItemCollectService {

    /**
     * 查找收藏资讯
     * @param userId
     * @return
     */
    Result findCollectLearn(Long userId);

    /**
     * 查找收藏资讯
     * @param userId
     * @return
     */
    Result findCollectBook(Long userId);

    /**
     * 添加收藏资讯
     * @param learnCollect
     * @return
     */
    Result insertCollectLearn(LearnCollect learnCollect);

    /**
     * 添加收藏书籍
     * @param bookCollect
     * @return
     */
    Result insertCollectBook(BookCollect bookCollect);

    /**
     * 删除收藏资讯
     * @param learnCollect
     * @return
     */
    Result deleteCollectLearn(LearnCollect learnCollect);

    /**
     * 删除收藏书籍
     * @param bookCollect
     * @return
     */
    Result deleteCollectBook(BookCollect bookCollect);
}
